package com.dan.csmall.cart.webapi.quartz;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;

import java.util.Date;
import static java.lang.Thread.sleep;

@Component
@EnableScheduling
public class TaskJobOne {

    public void testJobOneMethod() throws InterruptedException {
        System.out.println("1 定时任务1正在执行..."+new Date());
        sleep(3000);

        System.out.println("1  定时任务1业务代码执行完毕......"+new Date());
    }
}
